<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/admin/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta http-equiv="Cache-Control" content="no-siteapp" />
 <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="css/style.css"/>       
        <link href="assets/css/codemirror.css" rel="stylesheet"/>
        <link rel="stylesheet" href="assets/css/ace.min.css" />
        <link rel="stylesheet" href="font/css/font-awesome.min.css" />
        <!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->
		<script src="js/jquery-1.9.1.min.js"></script>
        <script src="assets/js/bootstrap.min.js"></script>
		<script src="assets/js/typeahead-bs2.min.js"></script>           	
		<script src="assets/js/jquery.dataTables.min.js"></script>
		<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
        <script src="assets/layer/layer.js" type="text/javascript" ></script>          
        <script src="js/H-ui.js" type="text/javascript"></script>
        <script src="js/displayPart.js" type="text/javascript"></script>
        <script src="assets/laydate/laydate.js" type="text/javascript"></script>
		<link href="css/layui.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="js/layui.js"></script>
        
<title>系统日志</title>
</head>
<body>
<script>
$(function(){
	var d=frm.selDater.value;
	if(d==""){
		frm.selDater.value='2018-03-21';
		frm.submit();
	}
	
});
</script>
<form id="frm" name="frm" method="post" action="/log/show">
<div class="margin clearfix">
 <div id="system_style">
     <div class="search_style">
     
      <ul class="search_content clearfix">
       <li><label class="l_f">时间</label><input value="${selDate}" name="selDater" class="inline laydate-icon" id="start" style=" margin-left:10px;"/></li>
       <li style="width:90px;"><input type="submit" class="btn_search" value="查询"/></li>
      </ul>
    </div>
    <!--系统日志-->
    <div class="system_logs">
       <table class="table table-striped table-bordered table-hover" id="sample-table">
       <thead>
		 <tr>
				<th width="180px">ID</th>
				<th width="1100px">操作内容</th>
				<th width="350px">操作时间</th>              
			</tr>
		</thead>
        <tbody>
        
       <c:if test="${lls.size()==0 }">
		<tr>
		<td colspan="3" style="text-align: center;">没有数据</td>
		</tr>
		</c:if>
	<c:forEach var="log" items="${lls }">
		<tr>
         	<td>${log.id }</td>
         	<td>${log.action }</td>
         	<td><fmt:formatDate value="${log.date }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
        </tr>
	</c:forEach>
        </tbody>
        </table>
        
    </div>
 </div>
</div>
</form>
</body>
</html>
<script>
  laydate({
    elem: '#start',
    event: 'focus' 
});
$(function() {
  var oTable1 = $('#sample-table').dataTable( {
  "aaSorting":false,//默认第几个排序
  "bStateSave": true,//状态保存
  "aoColumnDefs": [
	//{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
	{"orderable":false,"aTargets":[0,1,2,3]}// 制定列不参与排序
  ]});	
})
</script>